<div class="am-cf">
           第<object>${list.pageNum}</object>页	共<object>${list.TotalPage}</object>
        		页   共<object>${list.totalCount}</object>数据
              <div class="am-fr">
                <ul class="am-pagination">
                  <%if(list.pageNum <= 1){%>
                  <li class="am-disabled"><a href="#">«</a></li>
                  <%}else{%>
                   <li><a href="${pageUrl}?pageNum=${list.pageNum-1}">«</a></li>
                  <%}%>
                 
                 <%
                 var beginIndex = 0;
                 var endIndex = 0;
                 
                 if(list.pageNum > 2){
                 	beginIndex = list.pageNum -2;
                 	
                 	
                   if(list.pageNum < list.totalPage){
                   		if(list.pageNum == list.totalPage -1){
                   			endIndex = list.totalPage;
                   			beginIndex = beginIndex - 1;
                   		}else{
                         	endIndex = list.pageNum + 2;
                        }
                 	}            	
                 	else{
                 	    endIndex = list.totalPage;
                 	    beginIndex = beginIndex - 2 ;
                 	}
                 	
                 }else{
                 	beginIndex = 1;
                 	endIndex = 5;                 	
                 }
                                  
                
                 %>
                 
                 <%
                 if(list.totalPage<5){
                 endIndex=list.totalPage;
                 }
                 %>
                 
                 <%
                 	for(var index = beginIndex;index<=endIndex;index++){
                 %> 
                 <li class="${list.pageNum== index?'am-active':''}"><a href="${pageUrl}?pageNum=${index}">${index}</a></li>
                 <%}%>          
                  
                  <%if(list.pageNum >= list.totalPage){%>
                  <li class="am-disabled"><a href="#">»</a></li>
                  <%}else{%>
                   <li><a href="${pageUrl}?pageNum=${list.pageNum+1}">»</a></li>
                  <%}%>                
                </ul>
              </div>